<template>
  <!-- 渲染结构 -->
  <div class="tuijian">
    <div class="deta" v-for="item in count" :key="item._id">
      <div class="left">
        <img :src="item.imgurl" alt="" />
      </div>
      <div class="right">
        <div class="top">
          <div class="name">
            <div class="shang">
              <div class="le">{{ item.name }}</div>
              <div class="ri">{{ item.dications }}</div>
            </div>
            <div class="xia">
              <span class="span1">{{ item.belongto }}</span>
              <span class="span2">{{ item.indications }}</span>
            </div>
          </div>
          <div class="haopin">
            <div class="le">
              <span class="span1">{{ item.replay }}</span>
              <span class="span2">好评率</span>
            </div>
            <div class="rig">
              <span class="span1">{{ item.service }}</span>
              <span class="span2">咨询量</span>
            </div>
          </div>
          <div class="jieshao">擅长:{{ item.information }}</div>
          <div class="dianhua">
            <div class="le">
              <span class="span1">电话</span>
              <span>¥20</span>
            </div>
            <div class="mi">
              <span class="span1">图文</span>
              <span>¥10</span>
            </div>
            <div class="bot">
              <div class="wys">问医生</div>
            </div>
          </div>
        </div>
        <div class="bott">
          <div class="le">
            <div class="but">
              <div class="but_1">专病</div>
            </div>
            <span class="span">哮喘与慢咳电话咨询</span>
          </div>
          <div class="ri"></div>
        </div>
      </div>
    </div>
    <p class="bottom">已经到底了哦</p>
  </div>
</template>
<script>
import { inject } from "vue";
export default {
  setup() {
    const count = inject("count");
    return {
      count,
    };
  },
};
</script>

<style lang="less" scoped>
.tuijian {
  .bottom {
    text-align: center;
    line-height: 50px;
    font-size: 14px;
    color: #666666;
  }
}
.deta {
  border-bottom: 1px solid #e9dcdc;
  padding: 15px 10px 0 10px;
  width: 100%;
  display: flex;
  .left {
    width: 54px;
    height: 54px;
    margin-right: 15px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .right {
    flex: 1;
    .name {
      // width: 132px;
      height: 37px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .shang {
        display: flex;
        // justify-content: space-between;
        .le {
          // width: 56px;
          height: 17px;
          margin-right: 11px;
          font-size: 18px;
          font-weight: bold;
          color: #333333;
          line-height: 18px;
        }
        .ri {
          // width: 70px;
          height: 13px;
          font-size: 14px;
          font-weight: 400;
          color: #333333;
          line-height: 18px;
        }
      }
      .xia {
        display: flex;

        // width: 138px;
        height: 14px;
        .span1 {
          // width: 98px;
          margin-right: 13px;
          height: 14px;
          font-size: 14px;
          font-weight: 500;
          color: #333333;
          line-height: 18px;
        }
        .span2 {
          // width: 30px;
          height: 13px;
          font-size: 14px;
          font-weight: 500;
          color: #333333;
          line-height: 18px;
        }
      }
    }
    .haopin {
      display: flex;
      margin-top: 4px;
      margin-bottom: 11px;
      span {
        display: inline-block;
      }
      .le {
        margin-right: 25px;
        .span1 {
          margin-right: 3px;
          // width: 28px;
          height: 10px;
          font-size: 13px;
          font-weight: bold;
          color: #f47407;
          line-height: 18px;
        }
        .span2 {
          height: 13px;
          font-size: 13px;
          font-weight: 500;
          color: #666666;
          line-height: 18px;
        }
      }
      .rig {
        .span1 {
          // width: 32px;
          margin-right: 3px;
          height: 10px;
          font-size: 13px;
          font-weight: bold;
          color: #f47407;
          line-height: 18px;
        }
        .span2 {
          height: 13px;
          font-size: 13px;
          font-weight: 500;
          color: #666666;
          line-height: 18px;
        }
      }
    }
    .jieshao {
      width: 282px;
      height: 36px;
      font-size: 13px;
      font-weight: 500;
      color: #666666;
      line-height: 20px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    .dianhua {
      padding: 10px 0 13px;
      border-bottom: 1px solid #e9dcdc;
      width: 282px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .le {
        width: 64px;
        height: 13px;
        font-size: 14px;
        font-weight: 445;
        color: #333333;
        line-height: 20px;
        .span1 {
          margin-right: 8px;
        }
      }
      .mi {
        // width: 60px;
        height: 13px;
        font-size: 14px;
        font-weight: 445;
        color: #333333;
        line-height: 20px;
        .span1 {
          margin-right: 8px;
        }
      }
      .bot {
        width: 66px;
        height: 30px;
        border: 1px solid #0c8af6;
        border-radius: 15px;
        .wys {
          width: 42px;
          height: 13px;
          font-size: 14px;
          font-weight: 500;
          color: #0c87f5;
          line-height: 30px;
          margin: auto;
        }
      }
    }
    .bott {
      width: 282px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 0;
      .le {
        display: flex;
        .but {
          width: 36px;
          height: 19px;
          border: 1px solid #e8710c;
          border-radius: 3px;
          margin-right: 5px;
          .but_1 {
            margin: auto;
            width: 26px;
            height: 11px;
            font-size: 11px;
            font-weight: 500;
            color: #e8710c;
            line-height: 18px;
          }
        }
        .span {
          display: inline-block;
          width: 120px;
          height: 13px;
          font-size: 13px;
          font-weight: 500;
          color: #333333;
          line-height: 20px;
        }
      }
      .ri {
        width: 7px;
        height: 7px;
        border-right: 2px solid #999999;
        border-bottom: 2px solid #999999;
        transform: rotate(45deg);
      }
    }
  }
}
</style>
